Platform Explorer / Nuxeo Platform 6.0

Contribution org.nuxeo.ecm.platform.routing.dashboard.layouts--widgets

This contribution is part of XML component org.nuxeo.ecm.platform.routing.dashboard.layouts inside nuxeo-routing-dashboard-6.0.jar

Extension Point

Extension point widgets of component WebLayoutManager.

Contributed Items

  • <widget name="routing_task_name" type="text">
          <labels>
            <label mode="any">label.workflow.task.name</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.nt.name</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
          <properties mode="any">
            <property name="localize">true</property>
          </properties>
        </widget>
  • <widget name="routing_task_target_document" type="singleDocumentSuggestion">
          <labels>
            <label mode="any">label.document</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.nt.targetDocumentId</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
        </widget>
  • <widget name="routing_task_duedate" type="datetime">
          <labels>
            <label mode="any">label.widget.task_step.dueDate</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.nt.dueDate</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
          <properties mode="any">
            <property name="format">#{nxu:dateAndTimeFormatter('medium')}
            </property>
            <property name="timeZone">#{timeZone}</property>
          </properties>
        </widget>
  • <widget name="routing_task_directive" type="text">
          <labels>
            <label mode="any">label.widget.task_step.directive</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.nt.directive</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
          <properties mode="any">
            <property name="localize">true</property>
          </properties>
        </widget>
  • <widget name="routing_task_actors" type="multiplePrefixedUsersSuggestion">
          <labels>
            <label mode="any">label.document.route.content.header.actors
            </label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.nt.actors</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
          <properties mode="any">
            <property name="localize">true</property>
          </properties>
        </widget>
  • <widget name="routing_task_comments" type="list">
          <labels>
            <label mode="any">label.content.header.comments</label>
          </labels>
          <fields>
            <field>data.nt.taskComments</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
          <properties mode="any">
            <property name="localize">true</property>
            <property name="hideSubLabels">true</property>
          </properties>
          <subWidgets>
            <widget name="comment" type="text">
              <fields>
                <field/>
              </fields>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="routing_task_workflow_name" type="listing_workflow_name_task">
          <labels>
            <label mode="any">label.review.type</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.nt.processId</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
          <properties mode="any">
            <property name="localize">true</property>
          </properties>
        </widget>
  • <widget name="routing_task_process_btn" type="listing_process_task">
          <labels>
            <label mode="any"/>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data</field>
            <field>data.nt.targetDocumentId</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
          <properties mode="any">
            <property name="tab">TAB_ROUTE_WORKFLOW</property>
          </properties>
        </widget>
  • <widget name="workflowTabs" type="tabs">
          <properties mode="view">
            <property name="actionsDisplay">links</property>
            <property name="addForm">true</property>
            <property name="useAjaxForm">false</property>
            <property name="category">WORKFLOW_DASHBOARD</property>
            <property name="actions">#{webActions.getActionsList('WORKFLOW_DASHBOARD')}</property>
            <property name="currentTabAction">#{webActions.getCurrentTabAction('WORKFLOW_DASHBOARD')}</property>
            <property name="overallDisplay">horizontal_block</property>
          </properties>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <!-- Listing widgets -->
    <widget name="routing_task_name" type="text">
      <labels>
        <label mode="any">label.workflow.task.name</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.nt.name</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
      <properties mode="any">
        <property name="localize">true</property>
      </properties>
    </widget>

    <widget name="routing_task_target_document" type="singleDocumentSuggestion">
      <labels>
        <label mode="any">label.document</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.nt.targetDocumentId</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
    </widget>

    <widget name="routing_task_duedate" type="datetime">
      <labels>
        <label mode="any">label.widget.task_step.dueDate</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.nt.dueDate</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
      <properties mode="any">
        <property name="format">#{nxu:dateAndTimeFormatter('medium')}
        </property>
        <property name="timeZone">#{timeZone}</property>
      </properties>
    </widget>

    <widget name="routing_task_directive" type="text">
      <labels>
        <label mode="any">label.widget.task_step.directive</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.nt.directive</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
      <properties mode="any">
        <property name="localize">true</property>
      </properties>
    </widget>

    <widget name="routing_task_actors" type="multiplePrefixedUsersSuggestion">
      <labels>
        <label mode="any">label.document.route.content.header.actors
        </label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.nt.actors</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
      <properties mode="any">
        <property name="localize">true</property>
      </properties>
    </widget>

    <widget name="routing_task_comments" type="list">
      <labels>
        <label mode="any">label.content.header.comments</label>
      </labels>
      <fields>
        <field>data.nt.taskComments</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
      <properties mode="any">
        <property name="localize">true</property>
        <property name="hideSubLabels">true</property>
      </properties>
      <subWidgets>
        <widget name="comment" type="text">
          <fields>
            <field/>
          </fields>
        </widget>
      </subWidgets>
    </widget>

    <widget name="routing_task_workflow_name" type="listing_workflow_name_task">
      <labels>
        <label mode="any">label.review.type</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.nt.processId</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
      <properties mode="any">
        <property name="localize">true</property>
      </properties>
    </widget>

    <widget name="routing_task_process_btn" type="listing_process_task">
      <labels>
        <label mode="any"/>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data</field>
        <field>data.nt.targetDocumentId</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
      <properties mode="any">
        <property name="tab">TAB_ROUTE_WORKFLOW</property>
      </properties>
    </widget>
    <!-- Listing widgets -->

    <widget name="workflowTabs" type="tabs">
      <properties mode="view">
        <property name="actionsDisplay">links</property>
        <property name="addForm">true</property>
        <property name="useAjaxForm">false</property>
        <property name="category">WORKFLOW_DASHBOARD</property>
        <property name="actions">#{webActions.getActionsList('WORKFLOW_DASHBOARD')}</property>
        <property name="currentTabAction">#{webActions.getCurrentTabAction('WORKFLOW_DASHBOARD')}</property>
        <property name="overallDisplay">horizontal_block</property>
      </properties>
    </widget>

  </extension>